﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo01
{
    class TaskNPC:NPC
    {
        private string taskInfo;
        
        public TaskNPC(string name,NPCType type,string taskInfo):base(name,type)
        {
            this.taskInfo = taskInfo;
        }
        
        public override void Speak()
        {
            Console.WriteLine("你好，你来了！我需要你的帮助");
            Console.WriteLine("我是{0}，任务{1}",base.Name,this.taskInfo);
        }
    }
}
